package com.chimpansoft.claculator.mathParser;

import org.apfloat.Apfloat;


/**
 * <p>Wrapper that holds the mathematical Strings passed
 * to the parser.
 * 
 * @author Marco Naetlitz
 *
 */
public class Term {
	
	private String term;
	private Apfloat result;
	
	public Term(String term, Apfloat result) {
		super();
		this.term = term;
		this.result = result;
	}

	public String getTerm() {
		return term;
	}

	public Apfloat getResult() {
		return result;
	}
	
	public String toString() {
		return "\"" + term + "\" => " + result.toString();
	}
	
}
